package com.example.transaction.transaction.controller;

import com.example.transaction.transaction.pojp.Account;
import com.example.transaction.transaction.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: TransactionTest
 * @DESCRIPT: TODO
 * @AUTHOR: lemontree
 * @DATA: 2020/7/23 9:39 PM
 **/
@RestController
public class TransactionTest {

    @Autowired
    private AccountService accountService;

    @PostMapping(value = "test")
    public String test(@RequestBody Account account){
        accountService.save(account);
        return "";
    }
}
